home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / printing / magicfil.2 / magicfilter-1.2.tar / magicfilter-1.2 / configure < prev    next >
Text File  |  1996-03-17  |  80KB  |  3,106 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.7 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. mandir='${prefix}/man'
  48.  
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52.  
  53. ac_prev=
  54. for ac_option
  55. do
  56.  
  57.   # If the previous option needs an argument, assign it.
  58.   if test -n "$ac_prev"; then
  59.     eval "$ac_prev=\$ac_option"
  60.     ac_prev=
  61.     continue
  62.   fi
  63.  
  64.   case "$ac_option" in
  65.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  66.   *) ac_optarg= ;;
  67.   esac
  68.  
  69.   # Accept the important Cygnus configure options, so we can diagnose typos.
  70.  
  71.   case "$ac_option" in
  72.  
  73.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  74.     ac_prev=bindir ;;
  75.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  76.     bindir="$ac_optarg" ;;
  77.  
  78.   -build | --build | --buil | --bui | --bu)
  79.     ac_prev=build ;;
  80.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  81.     build="$ac_optarg" ;;
  82.  
  83.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  84.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  85.     ac_prev=cache_file ;;
  86.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  87.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  88.     cache_file="$ac_optarg" ;;
  89.  
  90.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  91.     ac_prev=datadir ;;
  92.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  93.   | --da=*)
  94.     datadir="$ac_optarg" ;;
  95.  
  96.   -disable-* | --disable-*)
  97.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  98.     # Reject names that are not valid shell variable names.
  99.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  100.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  101.     fi
  102.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  103.     eval "enable_${ac_feature}=no" ;;
  104.  
  105.   -enable-* | --enable-*)
  106.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  107.     # Reject names that are not valid shell variable names.
  108.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  109.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  110.     fi
  111.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  112.     case "$ac_option" in
  113.       *=*) ;;
  114.       *) ac_optarg=yes ;;
  115.     esac
  116.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  117.  
  118.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  119.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  120.   | --exec | --exe | --ex)
  121.     ac_prev=exec_prefix ;;
  122.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  123.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  124.   | --exec=* | --exe=* | --ex=*)
  125.     exec_prefix="$ac_optarg" ;;
  126.  
  127.   -gas | --gas | --ga | --g)
  128.     # Obsolete; use --with-gas.
  129.     with_gas=yes ;;
  130.  
  131.   -help | --help | --hel | --he)
  132.     # Omit some internal or obsolete options to make the list less imposing.
  133.     # This message is too long to be a string in the A/UX 3.1 sh.
  134.     cat << EOF
  135. Usage: configure [options] [host]
  136. Options: [defaults in brackets after descriptions]
  137. Configuration:
  138.   --cache-file=FILE       cache test results in FILE
  139.   --help                  print this message
  140.   --no-create             do not create output files
  141.   --quiet, --silent       do not print \`checking...' messages
  142.   --version               print the version of autoconf that created configure
  143. Directory and file names:
  144.   --prefix=PREFIX         install architecture-independent files in PREFIX
  145.                           [$ac_default_prefix]
  146.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  147.                           [same as prefix]
  148.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  149.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  150.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  151.   --datadir=DIR           read-only architecture-independent data in DIR
  152.                           [PREFIX/share]
  153.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  154.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  155.                           [PREFIX/com]
  156.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  157.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  158.   --includedir=DIR        C header files in DIR [PREFIX/include]
  159.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  160.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  161.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  162.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  163.   --program-prefix=PREFIX prepend PREFIX to installed program names
  164.   --program-suffix=SUFFIX append SUFFIX to installed program names
  165.   --program-transform-name=PROGRAM
  166.                           run sed PROGRAM on installed program names
  167. EOF
  168.     cat << EOF
  169. Host type:
  170.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  171.   --host=HOST             configure for HOST [guessed]
  172.   --target=TARGET         configure for TARGET [TARGET=HOST]
  173. Features and packages:
  174.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  175.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  176.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  177.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  178.   --x-includes=DIR        X include files are in DIR
  179.   --x-libraries=DIR       X library files are in DIR
  180. EOF
  181.     if test -n "$ac_help"; then
  182.       echo "--enable and --with options recognized:$ac_help"
  183.     fi
  184.     exit 0 ;;
  185.  
  186.   -host | --host | --hos | --ho)
  187.     ac_prev=host ;;
  188.   -host=* | --host=* | --hos=* | --ho=*)
  189.     host="$ac_optarg" ;;
  190.  
  191.   -includedir | --includedir | --includedi | --included | --include \
  192.   | --includ | --inclu | --incl | --inc)
  193.     ac_prev=includedir ;;
  194.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  195.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  196.     includedir="$ac_optarg" ;;
  197.  
  198.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  199.     ac_prev=infodir ;;
  200.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  201.     infodir="$ac_optarg" ;;
  202.  
  203.   -libdir | --libdir | --libdi | --libd)
  204.     ac_prev=libdir ;;
  205.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  206.     libdir="$ac_optarg" ;;
  207.  
  208.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  209.   | --libexe | --libex | --libe)
  210.     ac_prev=libexecdir ;;
  211.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  212.   | --libexe=* | --libex=* | --libe=*)
  213.     libexecdir="$ac_optarg" ;;
  214.  
  215.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  216.   | --localstate | --localstat | --localsta | --localst \
  217.   | --locals | --local | --loca | --loc | --lo)
  218.     ac_prev=localstatedir ;;
  219.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  220.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  221.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  222.     localstatedir="$ac_optarg" ;;
  223.  
  224.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  225.     ac_prev=mandir ;;
  226.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  227.     mandir="$ac_optarg" ;;
  228.  
  229.   -nfp | --nfp | --nf)
  230.     # Obsolete; use --without-fp.
  231.     with_fp=no ;;
  232.  
  233.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  234.   | --no-cr | --no-c)
  235.     no_create=yes ;;
  236.  
  237.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  238.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  239.     no_recursion=yes ;;
  240.  
  241.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  242.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  243.   | --oldin | --oldi | --old | --ol | --o)
  244.     ac_prev=oldincludedir ;;
  245.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  246.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  247.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  248.     oldincludedir="$ac_optarg" ;;
  249.  
  250.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  251.     ac_prev=prefix ;;
  252.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  253.     prefix="$ac_optarg" ;;
  254.  
  255.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  256.   | --program-pre | --program-pr | --program-p)
  257.     ac_prev=program_prefix ;;
  258.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  259.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  260.     program_prefix="$ac_optarg" ;;
  261.  
  262.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  263.   | --program-suf | --program-su | --program-s)
  264.     ac_prev=program_suffix ;;
  265.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  266.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  267.     program_suffix="$ac_optarg" ;;
  268.  
  269.   -program-transform-name | --program-transform-name \
  270.   | --program-transform-nam | --program-transform-na \
  271.   | --program-transform-n | --program-transform- \
  272.   | --program-transform | --program-transfor \
  273.   | --program-transfo | --program-transf \
  274.   | --program-trans | --program-tran \
  275.   | --progr-tra | --program-tr | --program-t)
  276.     ac_prev=program_transform_name ;;
  277.   -program-transform-name=* | --program-transform-name=* \
  278.   | --program-transform-nam=* | --program-transform-na=* \
  279.   | --program-transform-n=* | --program-transform-=* \
  280.   | --program-transform=* | --program-transfor=* \
  281.   | --program-transfo=* | --program-transf=* \
  282.   | --program-trans=* | --program-tran=* \
  283.   | --progr-tra=* | --program-tr=* | --program-t=*)
  284.     program_transform_name="$ac_optarg" ;;
  285.  
  286.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  287.   | -silent | --silent | --silen | --sile | --sil)
  288.     silent=yes ;;
  289.  
  290.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  291.     ac_prev=sbindir ;;
  292.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  293.   | --sbi=* | --sb=*)
  294.     sbindir="$ac_optarg" ;;
  295.  
  296.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  297.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  298.   | --sharedst | --shareds | --shared | --share | --shar \
  299.   | --sha | --sh)
  300.     ac_prev=sharedstatedir ;;
  301.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  302.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  303.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  304.   | --sha=* | --sh=*)
  305.     sharedstatedir="$ac_optarg" ;;
  306.  
  307.   -site | --site | --sit)
  308.     ac_prev=site ;;
  309.   -site=* | --site=* | --sit=*)
  310.     site="$ac_optarg" ;;
  311.  
  312.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  313.     ac_prev=srcdir ;;
  314.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  315.     srcdir="$ac_optarg" ;;
  316.  
  317.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  318.   | --syscon | --sysco | --sysc | --sys | --sy)
  319.     ac_prev=sysconfdir ;;
  320.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  321.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  322.     sysconfdir="$ac_optarg" ;;
  323.  
  324.   -target | --target | --targe | --targ | --tar | --ta | --t)
  325.     ac_prev=target ;;
  326.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  327.     target="$ac_optarg" ;;
  328.  
  329.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  330.     verbose=yes ;;
  331.  
  332.   -version | --version | --versio | --versi | --vers)
  333.     echo "configure generated by autoconf version 2.7"
  334.     exit 0 ;;
  335.  
  336.   -with-* | --with-*)
  337.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  338.     # Reject names that are not valid shell variable names.
  339.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  340.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  341.     fi
  342.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  343.     case "$ac_option" in
  344.       *=*) ;;
  345.       *) ac_optarg=yes ;;
  346.     esac
  347.     eval "with_${ac_package}='$ac_optarg'" ;;
  348.  
  349.   -without-* | --without-*)
  350.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  351.     # Reject names that are not valid shell variable names.
  352.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  353.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  354.     fi
  355.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  356.     eval "with_${ac_package}=no" ;;
  357.  
  358.   --x)
  359.     # Obsolete; use --with-x.
  360.     with_x=yes ;;
  361.  
  362.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  363.   | --x-incl | --x-inc | --x-in | --x-i)
  364.     ac_prev=x_includes ;;
  365.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  366.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  367.     x_includes="$ac_optarg" ;;
  368.  
  369.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  370.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  371.     ac_prev=x_libraries ;;
  372.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  373.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  374.     x_libraries="$ac_optarg" ;;
  375.  
  376.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  377.     ;;
  378.  
  379.   *)
  380.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  381.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  382.     fi
  383.     if test "x$nonopt" != xNONE; then
  384.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  385.     fi
  386.     nonopt="$ac_option"
  387.     ;;
  388.  
  389.   esac
  390. done
  391.  
  392. if test -n "$ac_prev"; then
  393.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  394. fi
  395.  
  396. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  397.  
  398. # File descriptor usage:
  399. # 0 standard input
  400. # 1 file creation
  401. # 2 errors and warnings
  402. # 3 some systems may open it to /dev/tty
  403. # 4 used on the Kubota Titan
  404. # 6 checking for... messages and results
  405. # 5 compiler messages saved in config.log
  406. if test "$silent" = yes; then
  407.   exec 6>/dev/null
  408. else
  409.   exec 6>&1
  410. fi
  411. exec 5>./config.log
  412.  
  413. echo "\
  414. This file contains any messages produced by compilers while
  415. running configure, to aid debugging if configure makes a mistake.
  416. " 1>&5
  417.  
  418. # Strip out --no-create and --no-recursion so they do not pile up.
  419. # Also quote any args containing shell metacharacters.
  420. ac_configure_args=
  421. for ac_arg
  422. do
  423.   case "$ac_arg" in
  424.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  425.   | --no-cr | --no-c) ;;
  426.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  428.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  429.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  430.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  431.   esac
  432. done
  433.  
  434. # NLS nuisances.
  435. # Only set LANG and LC_ALL to C if already set.
  436. # These must not be set unconditionally because not all systems understand
  437. # e.g. LANG=C (notably SCO).
  438. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  439. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  440.  
  441. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  442. rm -rf conftest* confdefs.h
  443. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  444. echo > confdefs.h
  445.  
  446. # A filename unique to this package, relative to the directory that
  447. # configure is in, which we can look for to find out if srcdir is correct.
  448. ac_unique_file=magicfilter.c
  449.  
  450. # Find the source files, if location was not specified.
  451. if test -z "$srcdir"; then
  452.   ac_srcdir_defaulted=yes
  453.   # Try the directory containing this script, then its parent.
  454.   ac_prog=$0
  455.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  456.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  457.   srcdir=$ac_confdir
  458.   if test ! -r $srcdir/$ac_unique_file; then
  459.     srcdir=..
  460.   fi
  461. else
  462.   ac_srcdir_defaulted=no
  463. fi
  464. if test ! -r $srcdir/$ac_unique_file; then
  465.   if test "$ac_srcdir_defaulted" = yes; then
  466.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  467.   else
  468.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  469.   fi
  470. fi
  471. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  472.  
  473. # Prefer explicitly selected file to automatically selected ones.
  474. if test -z "$CONFIG_SITE"; then
  475.   if test "x$prefix" != xNONE; then
  476.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  477.   else
  478.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  479.   fi
  480. fi
  481. for ac_site_file in $CONFIG_SITE; do
  482.   if test -r "$ac_site_file"; then
  483.     echo "loading site script $ac_site_file"
  484.     . "$ac_site_file"
  485.   fi
  486. done
  487.  
  488. if test -r "$cache_file"; then
  489.   echo "loading cache $cache_file"
  490.   . $cache_file
  491. else
  492.   echo "creating cache $cache_file"
  493.   > $cache_file
  494. fi
  495.  
  496. ac_ext=c
  497. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  498. ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  499. $CPP $CPPFLAGS'
  500. ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  501. ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  502. ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  503. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  504.  
  505. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  506.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  507.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  508.     ac_n= ac_c='
  509. ' ac_t='    '
  510.   else
  511.     ac_n=-n ac_c= ac_t=
  512.   fi
  513. else
  514.   ac_n= ac_c='\c' ac_t=
  515. fi
  516.  
  517.  
  518.  
  519.  
  520.  
  521. # Extract the first word of "gcc", so it can be a program name with args.
  522. set dummy gcc; ac_word=$2
  523. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  524. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  525.   echo $ac_n "(cached) $ac_c" 1>&6
  526. else
  527.   if test -n "$CC"; then
  528.   ac_cv_prog_CC="$CC" # Let the user override the test.
  529. else
  530.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  531.   for ac_dir in $PATH; do
  532.     test -z "$ac_dir" && ac_dir=.
  533.     if test -f $ac_dir/$ac_word; then
  534.       ac_cv_prog_CC="gcc"
  535.       break
  536.     fi
  537.   done
  538.   IFS="$ac_save_ifs"
  539.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  540. fi
  541. fi
  542. CC="$ac_cv_prog_CC"
  543. if test -n "$CC"; then
  544.   echo "$ac_t""$CC" 1>&6
  545. else
  546.   echo "$ac_t""no" 1>&6
  547. fi
  548.  
  549.  
  550. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  551. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  552.   echo $ac_n "(cached) $ac_c" 1>&6
  553. else
  554.   cat > conftest.c <<EOF
  555. #ifdef __GNUC__
  556.   yes;
  557. #endif
  558. EOF
  559. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  560.   ac_cv_prog_gcc=yes
  561. else
  562.   ac_cv_prog_gcc=no
  563. fi
  564. fi
  565.  
  566. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  567. if test $ac_cv_prog_gcc = yes; then
  568.   GCC=yes
  569.   if test "${CFLAGS+set}" != set; then
  570.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  571. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  572.   echo $ac_n "(cached) $ac_c" 1>&6
  573. else
  574.   echo 'void f(){}' > conftest.c
  575. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  576.   ac_cv_prog_gcc_g=yes
  577. else
  578.   ac_cv_prog_gcc_g=no
  579. fi
  580. rm -f conftest*
  581.  
  582. fi
  583.  
  584. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  585.     if test $ac_cv_prog_gcc_g = yes; then
  586.       CFLAGS="-g -O"
  587.     else
  588.       CFLAGS="-O"
  589.     fi
  590.   fi
  591. else
  592.   GCC=
  593.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  594. fi
  595.  
  596. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  597. # On Suns, sometimes $CPP names a directory.
  598. if test -n "$CPP" && test -d "$CPP"; then
  599.   CPP=
  600. fi
  601. if test -z "$CPP"; then
  602. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  603.   echo $ac_n "(cached) $ac_c" 1>&6
  604. else
  605.     # This must be in double quotes, not single quotes, because CPP may get
  606.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  607.   CPP="${CC-cc} -E"
  608.   # On the NeXT, cc -E runs the code through the compiler's parser,
  609.   # not just through cpp.
  610.   cat > conftest.$ac_ext <<EOF
  611. #line 612 "configure"
  612. #include "confdefs.h"
  613. #include <assert.h>
  614. Syntax Error
  615. EOF
  616. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  617. ac_err=`grep -v '^ *+' conftest.out`
  618. if test -z "$ac_err"; then
  619.   :
  620. else
  621.   echo "$ac_err" >&5
  622.   rm -rf conftest*
  623.   CPP="${CC-cc} -E -traditional-cpp"
  624.   cat > conftest.$ac_ext <<EOF
  625. #line 626 "configure"
  626. #include "confdefs.h"
  627. #include <assert.h>
  628. Syntax Error
  629. EOF
  630. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  631. ac_err=`grep -v '^ *+' conftest.out`
  632. if test -z "$ac_err"; then
  633.   :
  634. else
  635.   echo "$ac_err" >&5
  636.   rm -rf conftest*
  637.   CPP=/lib/cpp
  638. fi
  639. rm -f conftest*
  640. fi
  641. rm -f conftest*
  642.   ac_cv_prog_CPP="$CPP"
  643. fi
  644.   CPP="$ac_cv_prog_CPP"
  645. else
  646.   ac_cv_prog_CPP="$CPP"
  647. fi
  648. echo "$ac_t""$CPP" 1>&6
  649.  
  650. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  651. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  652. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  653.   echo $ac_n "(cached) $ac_c" 1>&6
  654. else
  655.   cat > conftest.$ac_ext <<EOF
  656. #line 657 "configure"
  657. #include "confdefs.h"
  658. #include <minix/config.h>
  659. EOF
  660. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  661. ac_err=`grep -v '^ *+' conftest.out`
  662. if test -z "$ac_err"; then
  663.   rm -rf conftest*
  664.   eval "ac_cv_header_$ac_safe=yes"
  665. else
  666.   echo "$ac_err" >&5
  667.   rm -rf conftest*
  668.   eval "ac_cv_header_$ac_safe=no"
  669. fi
  670. rm -f conftest*
  671. fi
  672. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  673.   echo "$ac_t""yes" 1>&6
  674.   MINIX=yes
  675. else
  676.   echo "$ac_t""no" 1>&6
  677. MINIX=
  678. fi
  679.  
  680. if test "$MINIX" = yes; then
  681.   cat >> confdefs.h <<\EOF
  682. #define _POSIX_SOURCE 1
  683. EOF
  684.  
  685.   cat >> confdefs.h <<\EOF
  686. #define _POSIX_1_SOURCE 2
  687. EOF
  688.  
  689.   cat >> confdefs.h <<\EOF
  690. #define _MINIX 1
  691. EOF
  692.  
  693. fi
  694.  
  695. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  696. cat > conftest.$ac_ext <<EOF
  697. #line 698 "configure"
  698. #include "confdefs.h"
  699. #ifdef _AIX
  700.   yes
  701. #endif
  702.  
  703. EOF
  704. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  705.   egrep "yes" >/dev/null 2>&1; then
  706.   rm -rf conftest*
  707.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  708. #define _ALL_SOURCE 1
  709. EOF
  710.  
  711. else
  712.   rm -rf conftest*
  713.   echo "$ac_t""no" 1>&6
  714. fi
  715. rm -f conftest*
  716.  
  717.  
  718. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  719. if test -d /etc/conf/kconfig.d &&
  720.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  721. then
  722.   echo "$ac_t""yes" 1>&6
  723.   ISC=yes # If later tests want to check for ISC.
  724.   cat >> confdefs.h <<\EOF
  725. #define _POSIX_SOURCE 1
  726. EOF
  727.  
  728.   if test "$GCC" = yes; then
  729.     CC="$CC -posix"
  730.   else
  731.     CC="$CC -Xp"
  732.   fi
  733. else
  734.   echo "$ac_t""no" 1>&6
  735.   ISC=
  736. fi
  737.  
  738.  
  739. ac_aux_dir=
  740. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  741.   if test -f $ac_dir/install-sh; then
  742.     ac_aux_dir=$ac_dir
  743.     ac_install_sh="$ac_aux_dir/install-sh -c"
  744.     break
  745.   elif test -f $ac_dir/install.sh; then
  746.     ac_aux_dir=$ac_dir
  747.     ac_install_sh="$ac_aux_dir/install.sh -c"
  748.     break
  749.   fi
  750. done
  751. if test -z "$ac_aux_dir"; then
  752.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  753. fi
  754. ac_config_guess=$ac_aux_dir/config.guess
  755. ac_config_sub=$ac_aux_dir/config.sub
  756. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  757.  
  758. # Find a good install program.  We prefer a C program (faster),
  759. # so one script is as good as another.  But avoid the broken or
  760. # incompatible versions:
  761. # SysV /etc/install, /usr/sbin/install
  762. # SunOS /usr/etc/install
  763. # IRIX /sbin/install
  764. # AIX /bin/install
  765. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  766. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  767. # ./install, which can be erroneously created by make from ./install.sh.
  768. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  769. if test -z "$INSTALL"; then
  770. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  771.   echo $ac_n "(cached) $ac_c" 1>&6
  772. else
  773.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  774.   for ac_dir in $PATH; do
  775.     # Account for people who put trailing slashes in PATH elements.
  776.     case "$ac_dir/" in
  777.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  778.     *)
  779.       # OSF1 and SCO ODT 3.0 have their own names for install.
  780.       for ac_prog in ginstall installbsd scoinst install; do
  781.         if test -f $ac_dir/$ac_prog; then
  782.       if test $ac_prog = install &&
  783.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  784.         # AIX install.  It has an incompatible calling convention.
  785.         # OSF/1 installbsd also uses dspmsg, but is usable.
  786.         :
  787.       else
  788.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  789.         break 2
  790.       fi
  791.     fi
  792.       done
  793.       ;;
  794.     esac
  795.   done
  796.   IFS="$ac_save_ifs"
  797.  
  798. fi
  799.   if test "${ac_cv_path_install+set}" = set; then
  800.     INSTALL="$ac_cv_path_install"
  801.   else
  802.     # As a last resort, use the slow shell script.  We don't cache a
  803.     # path for INSTALL within a source directory, because that will
  804.     # break other packages using the cache if that directory is
  805.     # removed, or if the path is relative.
  806.     INSTALL="$ac_install_sh"
  807.   fi
  808. fi
  809. echo "$ac_t""$INSTALL" 1>&6
  810.  
  811. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  812. # It thinks the first close brace ends the variable substitution.
  813. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  814.  
  815. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  816.  
  817. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  818. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  819.   echo $ac_n "(cached) $ac_c" 1>&6
  820. else
  821.   rm -f conftestdata
  822. if ln -s X conftestdata 2>/dev/null
  823. then
  824.   rm -f conftestdata
  825.   ac_cv_prog_LN_S="ln -s"
  826. else
  827.   ac_cv_prog_LN_S=ln
  828. fi
  829. fi
  830. LN_S="$ac_cv_prog_LN_S"
  831. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  832.   echo "$ac_t""yes" 1>&6
  833. else
  834.   echo "$ac_t""no" 1>&6
  835. fi
  836.  
  837. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  838. # On Suns, sometimes $CPP names a directory.
  839. if test -n "$CPP" && test -d "$CPP"; then
  840.   CPP=
  841. fi
  842. if test -z "$CPP"; then
  843. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  844.   echo $ac_n "(cached) $ac_c" 1>&6
  845. else
  846.     # This must be in double quotes, not single quotes, because CPP may get
  847.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  848.   CPP="${CC-cc} -E"
  849.   # On the NeXT, cc -E runs the code through the compiler's parser,
  850.   # not just through cpp.
  851.   cat > conftest.$ac_ext <<EOF
  852. #line 853 "configure"
  853. #include "confdefs.h"
  854. #include <assert.h>
  855. Syntax Error
  856. EOF
  857. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  858. ac_err=`grep -v '^ *+' conftest.out`
  859. if test -z "$ac_err"; then
  860.   :
  861. else
  862.   echo "$ac_err" >&5
  863.   rm -rf conftest*
  864.   CPP="${CC-cc} -E -traditional-cpp"
  865.   cat > conftest.$ac_ext <<EOF
  866. #line 867 "configure"
  867. #include "confdefs.h"
  868. #include <assert.h>
  869. Syntax Error
  870. EOF
  871. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  872. ac_err=`grep -v '^ *+' conftest.out`
  873. if test -z "$ac_err"; then
  874.   :
  875. else
  876.   echo "$ac_err" >&5
  877.   rm -rf conftest*
  878.   CPP=/lib/cpp
  879. fi
  880. rm -f conftest*
  881. fi
  882. rm -f conftest*
  883.   ac_cv_prog_CPP="$CPP"
  884. fi
  885.   CPP="$ac_cv_prog_CPP"
  886. else
  887.   ac_cv_prog_CPP="$CPP"
  888. fi
  889. echo "$ac_t""$CPP" 1>&6
  890.  
  891.  
  892. for ac_prog in gs
  893. do
  894. # Extract the first word of "$ac_prog", so it can be a program name with args.
  895. set dummy $ac_prog; ac_word=$2
  896. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  897. if eval "test \"`echo '$''{'ac_cv_path_GHOSTSCRIPT'+set}'`\" = set"; then
  898.   echo $ac_n "(cached) $ac_c" 1>&6
  899. else
  900.   case "$GHOSTSCRIPT" in
  901.   /*)
  902.   ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
  903.   ;;
  904.   *)
  905.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  906.   for ac_dir in $PATH; do
  907.     test -z "$ac_dir" && ac_dir=.
  908.     if test -f $ac_dir/$ac_word; then
  909.       ac_cv_path_GHOSTSCRIPT="$ac_dir/$ac_word"
  910.       break
  911.     fi
  912.   done
  913.   IFS="$ac_save_ifs"
  914.   ;;
  915. esac
  916. fi
  917. GHOSTSCRIPT="$ac_cv_path_GHOSTSCRIPT"
  918. if test -n "$GHOSTSCRIPT"; then
  919.   echo "$ac_t""$GHOSTSCRIPT" 1>&6
  920. else
  921.   echo "$ac_t""no" 1>&6
  922. fi
  923.  
  924. test -n "$GHOSTSCRIPT" && break
  925. done
  926.  
  927. if test -n "$GHOSTSCRIPT"; then
  928.   cat >> confdefs.h <<\EOF
  929. #define HAVE_GHOSTSCRIPT 1
  930. EOF
  931.  
  932.   cat >> confdefs.h <<EOF
  933. #define PATH_GHOSTSCRIPT $GHOSTSCRIPT
  934. EOF
  935.  
  936. fi
  937. for ac_prog in grog
  938. do
  939. # Extract the first word of "$ac_prog", so it can be a program name with args.
  940. set dummy $ac_prog; ac_word=$2
  941. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  942. if eval "test \"`echo '$''{'ac_cv_path_GROG'+set}'`\" = set"; then
  943.   echo $ac_n "(cached) $ac_c" 1>&6
  944. else
  945.   case "$GROG" in
  946.   /*)
  947.   ac_cv_path_GROG="$GROG" # Let the user override the test with a path.
  948.   ;;
  949.   *)
  950.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  951.   for ac_dir in $PATH; do
  952.     test -z "$ac_dir" && ac_dir=.
  953.     if test -f $ac_dir/$ac_word; then
  954.       ac_cv_path_GROG="$ac_dir/$ac_word"
  955.       break
  956.     fi
  957.   done
  958.   IFS="$ac_save_ifs"
  959.   ;;
  960. esac
  961. fi
  962. GROG="$ac_cv_path_GROG"
  963. if test -n "$GROG"; then
  964.   echo "$ac_t""$GROG" 1>&6
  965. else
  966.   echo "$ac_t""no" 1>&6
  967. fi
  968.  
  969. test -n "$GROG" && break
  970. done
  971.  
  972. if test -n "$GROG"; then
  973.   cat >> confdefs.h <<\EOF
  974. #define HAVE_GROG 1
  975. EOF
  976.  
  977.   cat >> confdefs.h <<EOF
  978. #define PATH_GROG $GROG
  979. EOF
  980.  
  981. fi
  982. for ac_prog in groff
  983. do
  984. # Extract the first word of "$ac_prog", so it can be a program name with args.
  985. set dummy $ac_prog; ac_word=$2
  986. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  987. if eval "test \"`echo '$''{'ac_cv_path_GROFF'+set}'`\" = set"; then
  988.   echo $ac_n "(cached) $ac_c" 1>&6
  989. else
  990.   case "$GROFF" in
  991.   /*)
  992.   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  993.   ;;
  994.   *)
  995.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  996.   for ac_dir in $PATH; do
  997.     test -z "$ac_dir" && ac_dir=.
  998.     if test -f $ac_dir/$ac_word; then
  999.       ac_cv_path_GROFF="$ac_dir/$ac_word"
  1000.       break
  1001.     fi
  1002.   done
  1003.   IFS="$ac_save_ifs"
  1004.   ;;
  1005. esac
  1006. fi
  1007. GROFF="$ac_cv_path_GROFF"
  1008. if test -n "$GROFF"; then
  1009.   echo "$ac_t""$GROFF" 1>&6
  1010. else
  1011.   echo "$ac_t""no" 1>&6
  1012. fi
  1013.  
  1014. test -n "$GROFF" && break
  1015. done
  1016.  
  1017. if test -n "$GROFF"; then
  1018.   cat >> confdefs.h <<\EOF
  1019. #define HAVE_GROFF 1
  1020. EOF
  1021.  
  1022.   cat >> confdefs.h <<EOF
  1023. #define PATH_GROFF $GROFF
  1024. EOF
  1025.  
  1026. fi
  1027. for ac_prog in gtroff ditroff troff
  1028. do
  1029. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1030. set dummy $ac_prog; ac_word=$2
  1031. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1032. if eval "test \"`echo '$''{'ac_cv_path_DITROFF'+set}'`\" = set"; then
  1033.   echo $ac_n "(cached) $ac_c" 1>&6
  1034. else
  1035.   case "$DITROFF" in
  1036.   /*)
  1037.   ac_cv_path_DITROFF="$DITROFF" # Let the user override the test with a path.
  1038.   ;;
  1039.   *)
  1040.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1041.   for ac_dir in $PATH; do
  1042.     test -z "$ac_dir" && ac_dir=.
  1043.     if test -f $ac_dir/$ac_word; then
  1044.       ac_cv_path_DITROFF="$ac_dir/$ac_word"
  1045.       break
  1046.     fi
  1047.   done
  1048.   IFS="$ac_save_ifs"
  1049.   ;;
  1050. esac
  1051. fi
  1052. DITROFF="$ac_cv_path_DITROFF"
  1053. if test -n "$DITROFF"; then
  1054.   echo "$ac_t""$DITROFF" 1>&6
  1055. else
  1056.   echo "$ac_t""no" 1>&6
  1057. fi
  1058.  
  1059. test -n "$DITROFF" && break
  1060. done
  1061.  
  1062. if test -n "$DITROFF"; then
  1063.   cat >> confdefs.h <<\EOF
  1064. #define HAVE_DITROFF 1
  1065. EOF
  1066.  
  1067.   cat >> confdefs.h <<EOF
  1068. #define PATH_DITROFF $DITROFF
  1069. EOF
  1070.  
  1071. fi
  1072. for ac_prog in grops
  1073. do
  1074. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1075. set dummy $ac_prog; ac_word=$2
  1076. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1077. if eval "test \"`echo '$''{'ac_cv_path_GROPS'+set}'`\" = set"; then
  1078.   echo $ac_n "(cached) $ac_c" 1>&6
  1079. else
  1080.   case "$GROPS" in
  1081.   /*)
  1082.   ac_cv_path_GROPS="$GROPS" # Let the user override the test with a path.
  1083.   ;;
  1084.   *)
  1085.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1086.   for ac_dir in $PATH; do
  1087.     test -z "$ac_dir" && ac_dir=.
  1088.     if test -f $ac_dir/$ac_word; then
  1089.       ac_cv_path_GROPS="$ac_dir/$ac_word"
  1090.       break
  1091.     fi
  1092.   done
  1093.   IFS="$ac_save_ifs"
  1094.   ;;
  1095. esac
  1096. fi
  1097. GROPS="$ac_cv_path_GROPS"
  1098. if test -n "$GROPS"; then
  1099.   echo "$ac_t""$GROPS" 1>&6
  1100. else
  1101.   echo "$ac_t""no" 1>&6
  1102. fi
  1103.  
  1104. test -n "$GROPS" && break
  1105. done
  1106.  
  1107. if test -n "$GROPS"; then
  1108.   cat >> confdefs.h <<\EOF
  1109. #define HAVE_GROPS 1
  1110. EOF
  1111.  
  1112.   cat >> confdefs.h <<EOF
  1113. #define PATH_GROPS $GROPS
  1114. EOF
  1115.  
  1116. fi
  1117. for ac_prog in grodvi
  1118. do
  1119. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1120. set dummy $ac_prog; ac_word=$2
  1121. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1122. if eval "test \"`echo '$''{'ac_cv_path_GRODVI'+set}'`\" = set"; then
  1123.   echo $ac_n "(cached) $ac_c" 1>&6
  1124. else
  1125.   case "$GRODVI" in
  1126.   /*)
  1127.   ac_cv_path_GRODVI="$GRODVI" # Let the user override the test with a path.
  1128.   ;;
  1129.   *)
  1130.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1131.   for ac_dir in $PATH; do
  1132.     test -z "$ac_dir" && ac_dir=.
  1133.     if test -f $ac_dir/$ac_word; then
  1134.       ac_cv_path_GRODVI="$ac_dir/$ac_word"
  1135.       break
  1136.     fi
  1137.   done
  1138.   IFS="$ac_save_ifs"
  1139.   ;;
  1140. esac
  1141. fi
  1142. GRODVI="$ac_cv_path_GRODVI"
  1143. if test -n "$GRODVI"; then
  1144.   echo "$ac_t""$GRODVI" 1>&6
  1145. else
  1146.   echo "$ac_t""no" 1>&6
  1147. fi
  1148.  
  1149. test -n "$GRODVI" && break
  1150. done
  1151.  
  1152. if test -n "$GRODVI"; then
  1153.   cat >> confdefs.h <<\EOF
  1154. #define HAVE_GRODVI 1
  1155. EOF
  1156.  
  1157.   cat >> confdefs.h <<EOF
  1158. #define PATH_GRODVI $GRODVI
  1159. EOF
  1160.  
  1161. fi
  1162. for ac_prog in grotty
  1163. do
  1164. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1165. set dummy $ac_prog; ac_word=$2
  1166. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1167. if eval "test \"`echo '$''{'ac_cv_path_GROTTY'+set}'`\" = set"; then
  1168.   echo $ac_n "(cached) $ac_c" 1>&6
  1169. else
  1170.   case "$GROTTY" in
  1171.   /*)
  1172.   ac_cv_path_GROTTY="$GROTTY" # Let the user override the test with a path.
  1173.   ;;
  1174.   *)
  1175.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1176.   for ac_dir in $PATH; do
  1177.     test -z "$ac_dir" && ac_dir=.
  1178.     if test -f $ac_dir/$ac_word; then
  1179.       ac_cv_path_GROTTY="$ac_dir/$ac_word"
  1180.       break
  1181.     fi
  1182.   done
  1183.   IFS="$ac_save_ifs"
  1184.   ;;
  1185. esac
  1186. fi
  1187. GROTTY="$ac_cv_path_GROTTY"
  1188. if test -n "$GROTTY"; then
  1189.   echo "$ac_t""$GROTTY" 1>&6
  1190. else
  1191.   echo "$ac_t""no" 1>&6
  1192. fi
  1193.  
  1194. test -n "$GROTTY" && break
  1195. done
  1196.  
  1197. if test -n "$GROTTY"; then
  1198.   cat >> confdefs.h <<\EOF
  1199. #define HAVE_GROTTY 1
  1200. EOF
  1201.  
  1202.   cat >> confdefs.h <<EOF
  1203. #define PATH_GROTTY $GROTTY
  1204. EOF
  1205.  
  1206. fi
  1207. for ac_prog in grolj4
  1208. do
  1209. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1210. set dummy $ac_prog; ac_word=$2
  1211. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1212. if eval "test \"`echo '$''{'ac_cv_path_GROLJ4'+set}'`\" = set"; then
  1213.   echo $ac_n "(cached) $ac_c" 1>&6
  1214. else
  1215.   case "$GROLJ4" in
  1216.   /*)
  1217.   ac_cv_path_GROLJ4="$GROLJ4" # Let the user override the test with a path.
  1218.   ;;
  1219.   *)
  1220.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1221.   for ac_dir in $PATH; do
  1222.     test -z "$ac_dir" && ac_dir=.
  1223.     if test -f $ac_dir/$ac_word; then
  1224.       ac_cv_path_GROLJ4="$ac_dir/$ac_word"
  1225.       break
  1226.     fi
  1227.   done
  1228.   IFS="$ac_save_ifs"
  1229.   ;;
  1230. esac
  1231. fi
  1232. GROLJ4="$ac_cv_path_GROLJ4"
  1233. if test -n "$GROLJ4"; then
  1234.   echo "$ac_t""$GROLJ4" 1>&6
  1235. else
  1236.   echo "$ac_t""no" 1>&6
  1237. fi
  1238.  
  1239. test -n "$GROLJ4" && break
  1240. done
  1241.  
  1242. if test -n "$GROLJ4"; then
  1243.   cat >> confdefs.h <<\EOF
  1244. #define HAVE_GROLJ4 1
  1245. EOF
  1246.  
  1247.   cat >> confdefs.h <<EOF
  1248. #define PATH_GROLJ4 $GROLJ4
  1249. EOF
  1250.  
  1251. fi
  1252. for ac_prog in gzip gunzip gzcat
  1253. do
  1254. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1255. set dummy $ac_prog; ac_word=$2
  1256. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1257. if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then
  1258.   echo $ac_n "(cached) $ac_c" 1>&6
  1259. else
  1260.   case "$GZIP" in
  1261.   /*)
  1262.   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
  1263.   ;;
  1264.   *)
  1265.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1266.   for ac_dir in $PATH; do
  1267.     test -z "$ac_dir" && ac_dir=.
  1268.     if test -f $ac_dir/$ac_word; then
  1269.       ac_cv_path_GZIP="$ac_dir/$ac_word"
  1270.       break
  1271.     fi
  1272.   done
  1273.   IFS="$ac_save_ifs"
  1274.   ;;
  1275. esac
  1276. fi
  1277. GZIP="$ac_cv_path_GZIP"
  1278. if test -n "$GZIP"; then
  1279.   echo "$ac_t""$GZIP" 1>&6
  1280. else
  1281.   echo "$ac_t""no" 1>&6
  1282. fi
  1283.  
  1284. test -n "$GZIP" && break
  1285. done
  1286.  
  1287. if test -n "$GZIP"; then
  1288.   cat >> confdefs.h <<\EOF
  1289. #define HAVE_GZIP 1
  1290. EOF
  1291.  
  1292.   cat >> confdefs.h <<EOF
  1293. #define PATH_GZIP $GZIP
  1294. EOF
  1295.  
  1296. fi
  1297. for ac_prog in zcat
  1298. do
  1299. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1300. set dummy $ac_prog; ac_word=$2
  1301. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1302. if eval "test \"`echo '$''{'ac_cv_path_ZCAT'+set}'`\" = set"; then
  1303.   echo $ac_n "(cached) $ac_c" 1>&6
  1304. else
  1305.   case "$ZCAT" in
  1306.   /*)
  1307.   ac_cv_path_ZCAT="$ZCAT" # Let the user override the test with a path.
  1308.   ;;
  1309.   *)
  1310.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1311.   for ac_dir in $PATH; do
  1312.     test -z "$ac_dir" && ac_dir=.
  1313.     if test -f $ac_dir/$ac_word; then
  1314.       ac_cv_path_ZCAT="$ac_dir/$ac_word"
  1315.       break
  1316.     fi
  1317.   done
  1318.   IFS="$ac_save_ifs"
  1319.   ;;
  1320. esac
  1321. fi
  1322. ZCAT="$ac_cv_path_ZCAT"
  1323. if test -n "$ZCAT"; then
  1324.   echo "$ac_t""$ZCAT" 1>&6
  1325. else
  1326.   echo "$ac_t""no" 1>&6
  1327. fi
  1328.  
  1329. test -n "$ZCAT" && break
  1330. done
  1331.  
  1332. if test -n "$ZCAT"; then
  1333.   cat >> confdefs.h <<\EOF
  1334. #define HAVE_ZCAT 1
  1335. EOF
  1336.  
  1337.   cat >> confdefs.h <<EOF
  1338. #define PATH_ZCAT $ZCAT
  1339. EOF
  1340.  
  1341. fi
  1342. for ac_prog in uncompress
  1343. do
  1344. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1345. set dummy $ac_prog; ac_word=$2
  1346. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1347. if eval "test \"`echo '$''{'ac_cv_path_UNCOMPRESS'+set}'`\" = set"; then
  1348.   echo $ac_n "(cached) $ac_c" 1>&6
  1349. else
  1350.   case "$UNCOMPRESS" in
  1351.   /*)
  1352.   ac_cv_path_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test with a path.
  1353.   ;;
  1354.   *)
  1355.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1356.   for ac_dir in $PATH; do
  1357.     test -z "$ac_dir" && ac_dir=.
  1358.     if test -f $ac_dir/$ac_word; then
  1359.       ac_cv_path_UNCOMPRESS="$ac_dir/$ac_word"
  1360.       break
  1361.     fi
  1362.   done
  1363.   IFS="$ac_save_ifs"
  1364.   ;;
  1365. esac
  1366. fi
  1367. UNCOMPRESS="$ac_cv_path_UNCOMPRESS"
  1368. if test -n "$UNCOMPRESS"; then
  1369.   echo "$ac_t""$UNCOMPRESS" 1>&6
  1370. else
  1371.   echo "$ac_t""no" 1>&6
  1372. fi
  1373.  
  1374. test -n "$UNCOMPRESS" && break
  1375. done
  1376.  
  1377. if test -n "$UNCOMPRESS"; then
  1378.   cat >> confdefs.h <<\EOF
  1379. #define HAVE_UNCOMPRESS 1
  1380. EOF
  1381.  
  1382.   cat >> confdefs.h <<EOF
  1383. #define PATH_UNCOMPRESS $UNCOMPRESS
  1384. EOF
  1385.  
  1386. fi
  1387. for ac_prog in dvips
  1388. do
  1389. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1390. set dummy $ac_prog; ac_word=$2
  1391. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1392. if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
  1393.   echo $ac_n "(cached) $ac_c" 1>&6
  1394. else
  1395.   case "$DVIPS" in
  1396.   /*)
  1397.   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
  1398.   ;;
  1399.   *)
  1400.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1401.   for ac_dir in $PATH; do
  1402.     test -z "$ac_dir" && ac_dir=.
  1403.     if test -f $ac_dir/$ac_word; then
  1404.       ac_cv_path_DVIPS="$ac_dir/$ac_word"
  1405.       break
  1406.     fi
  1407.   done
  1408.   IFS="$ac_save_ifs"
  1409.   ;;
  1410. esac
  1411. fi
  1412. DVIPS="$ac_cv_path_DVIPS"
  1413. if test -n "$DVIPS"; then
  1414.   echo "$ac_t""$DVIPS" 1>&6
  1415. else
  1416.   echo "$ac_t""no" 1>&6
  1417. fi
  1418.  
  1419. test -n "$DVIPS" && break
  1420. done
  1421.  
  1422. if test -n "$DVIPS"; then
  1423.   cat >> confdefs.h <<\EOF
  1424. #define HAVE_DVIPS 1
  1425. EOF
  1426.  
  1427.   cat >> confdefs.h <<EOF
  1428. #define PATH_DVIPS $DVIPS
  1429. EOF
  1430.  
  1431. fi
  1432. for ac_prog in pnmtops
  1433. do
  1434. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1435. set dummy $ac_prog; ac_word=$2
  1436. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1437. if eval "test \"`echo '$''{'ac_cv_path_PNMTOPS'+set}'`\" = set"; then
  1438.   echo $ac_n "(cached) $ac_c" 1>&6
  1439. else
  1440.   case "$PNMTOPS" in
  1441.   /*)
  1442.   ac_cv_path_PNMTOPS="$PNMTOPS" # Let the user override the test with a path.
  1443.   ;;
  1444.   *)
  1445.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1446.   for ac_dir in $PATH; do
  1447.     test -z "$ac_dir" && ac_dir=.
  1448.     if test -f $ac_dir/$ac_word; then
  1449.       ac_cv_path_PNMTOPS="$ac_dir/$ac_word"
  1450.       break
  1451.     fi
  1452.   done
  1453.   IFS="$ac_save_ifs"
  1454.   ;;
  1455. esac
  1456. fi
  1457. PNMTOPS="$ac_cv_path_PNMTOPS"
  1458. if test -n "$PNMTOPS"; then
  1459.   echo "$ac_t""$PNMTOPS" 1>&6
  1460. else
  1461.   echo "$ac_t""no" 1>&6
  1462. fi
  1463.  
  1464. test -n "$PNMTOPS" && break
  1465. done
  1466.  
  1467. if test -n "$PNMTOPS"; then
  1468.   cat >> confdefs.h <<\EOF
  1469. #define HAVE_PNMTOPS 1
  1470. EOF
  1471.  
  1472.   cat >> confdefs.h <<EOF
  1473. #define PATH_PNMTOPS $PNMTOPS
  1474. EOF
  1475.  
  1476. fi
  1477. for ac_prog in giftopnm giftoppm
  1478. do
  1479. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1480. set dummy $ac_prog; ac_word=$2
  1481. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1482. if eval "test \"`echo '$''{'ac_cv_path_GIFTOPPM'+set}'`\" = set"; then
  1483.   echo $ac_n "(cached) $ac_c" 1>&6
  1484. else
  1485.   case "$GIFTOPPM" in
  1486.   /*)
  1487.   ac_cv_path_GIFTOPPM="$GIFTOPPM" # Let the user override the test with a path.
  1488.   ;;
  1489.   *)
  1490.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1491.   for ac_dir in $PATH; do
  1492.     test -z "$ac_dir" && ac_dir=.
  1493.     if test -f $ac_dir/$ac_word; then
  1494.       ac_cv_path_GIFTOPPM="$ac_dir/$ac_word"
  1495.       break
  1496.     fi
  1497.   done
  1498.   IFS="$ac_save_ifs"
  1499.   ;;
  1500. esac
  1501. fi
  1502. GIFTOPPM="$ac_cv_path_GIFTOPPM"
  1503. if test -n "$GIFTOPPM"; then
  1504.   echo "$ac_t""$GIFTOPPM" 1>&6
  1505. else
  1506.   echo "$ac_t""no" 1>&6
  1507. fi
  1508.  
  1509. test -n "$GIFTOPPM" && break
  1510. done
  1511.  
  1512. if test -n "$GIFTOPPM"; then
  1513.   cat >> confdefs.h <<\EOF
  1514. #define HAVE_GIFTOPPM 1
  1515. EOF
  1516.  
  1517.   cat >> confdefs.h <<EOF
  1518. #define PATH_GIFTOPPM $GIFTOPPM
  1519. EOF
  1520.  
  1521. fi
  1522. for ac_prog in djpeg
  1523. do
  1524. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1525. set dummy $ac_prog; ac_word=$2
  1526. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1527. if eval "test \"`echo '$''{'ac_cv_path_DJPEG'+set}'`\" = set"; then
  1528.   echo $ac_n "(cached) $ac_c" 1>&6
  1529. else
  1530.   case "$DJPEG" in
  1531.   /*)
  1532.   ac_cv_path_DJPEG="$DJPEG" # Let the user override the test with a path.
  1533.   ;;
  1534.   *)
  1535.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1536.   for ac_dir in $PATH; do
  1537.     test -z "$ac_dir" && ac_dir=.
  1538.     if test -f $ac_dir/$ac_word; then
  1539.       ac_cv_path_DJPEG="$ac_dir/$ac_word"
  1540.       break
  1541.     fi
  1542.   done
  1543.   IFS="$ac_save_ifs"
  1544.   ;;
  1545. esac
  1546. fi
  1547. DJPEG="$ac_cv_path_DJPEG"
  1548. if test -n "$DJPEG"; then
  1549.   echo "$ac_t""$DJPEG" 1>&6
  1550. else
  1551.   echo "$ac_t""no" 1>&6
  1552. fi
  1553.  
  1554. test -n "$DJPEG" && break
  1555. done
  1556.  
  1557. if test -n "$DJPEG"; then
  1558.   cat >> confdefs.h <<\EOF
  1559. #define HAVE_DJPEG 1
  1560. EOF
  1561.  
  1562.   cat >> confdefs.h <<EOF
  1563. #define PATH_DJPEG $DJPEG
  1564. EOF
  1565.  
  1566. fi
  1567. for ac_prog in sgitopnm
  1568. do
  1569. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1570. set dummy $ac_prog; ac_word=$2
  1571. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1572. if eval "test \"`echo '$''{'ac_cv_path_SGITOPNM'+set}'`\" = set"; then
  1573.   echo $ac_n "(cached) $ac_c" 1>&6
  1574. else
  1575.   case "$SGITOPNM" in
  1576.   /*)
  1577.   ac_cv_path_SGITOPNM="$SGITOPNM" # Let the user override the test with a path.
  1578.   ;;
  1579.   *)
  1580.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1581.   for ac_dir in $PATH; do
  1582.     test -z "$ac_dir" && ac_dir=.
  1583.     if test -f $ac_dir/$ac_word; then
  1584.       ac_cv_path_SGITOPNM="$ac_dir/$ac_word"
  1585.       break
  1586.     fi
  1587.   done
  1588.   IFS="$ac_save_ifs"
  1589.   ;;
  1590. esac
  1591. fi
  1592. SGITOPNM="$ac_cv_path_SGITOPNM"
  1593. if test -n "$SGITOPNM"; then
  1594.   echo "$ac_t""$SGITOPNM" 1>&6
  1595. else
  1596.   echo "$ac_t""no" 1>&6
  1597. fi
  1598.  
  1599. test -n "$SGITOPNM" && break
  1600. done
  1601.  
  1602. if test -n "$SGITOPNM"; then
  1603.   cat >> confdefs.h <<\EOF
  1604. #define HAVE_SGITOPNM 1
  1605. EOF
  1606.  
  1607.   cat >> confdefs.h <<EOF
  1608. #define PATH_SGITOPNM $SGITOPNM
  1609. EOF
  1610.  
  1611. fi
  1612. for ac_prog in tops
  1613. do
  1614. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1615. set dummy $ac_prog; ac_word=$2
  1616. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1617. if eval "test \"`echo '$''{'ac_cv_path_TOPS'+set}'`\" = set"; then
  1618.   echo $ac_n "(cached) $ac_c" 1>&6
  1619. else
  1620.   case "$TOPS" in
  1621.   /*)
  1622.   ac_cv_path_TOPS="$TOPS" # Let the user override the test with a path.
  1623.   ;;
  1624.   *)
  1625.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1626.   for ac_dir in $PATH; do
  1627.     test -z "$ac_dir" && ac_dir=.
  1628.     if test -f $ac_dir/$ac_word; then
  1629.       ac_cv_path_TOPS="$ac_dir/$ac_word"
  1630.       break
  1631.     fi
  1632.   done
  1633.   IFS="$ac_save_ifs"
  1634.   ;;
  1635. esac
  1636. fi
  1637. TOPS="$ac_cv_path_TOPS"
  1638. if test -n "$TOPS"; then
  1639.   echo "$ac_t""$TOPS" 1>&6
  1640. else
  1641.   echo "$ac_t""no" 1>&6
  1642. fi
  1643.  
  1644. test -n "$TOPS" && break
  1645. done
  1646.  
  1647. if test -n "$TOPS"; then
  1648.   cat >> confdefs.h <<\EOF
  1649. #define HAVE_TOPS 1
  1650. EOF
  1651.  
  1652.   cat >> confdefs.h <<EOF
  1653. #define PATH_TOPS $TOPS
  1654. EOF
  1655.  
  1656. fi
  1657. for ac_prog in sgitops
  1658. do
  1659. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1660. set dummy $ac_prog; ac_word=$2
  1661. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1662. if eval "test \"`echo '$''{'ac_cv_path_SGITOPS'+set}'`\" = set"; then
  1663.   echo $ac_n "(cached) $ac_c" 1>&6
  1664. else
  1665.   case "$SGITOPS" in
  1666.   /*)
  1667.   ac_cv_path_SGITOPS="$SGITOPS" # Let the user override the test with a path.
  1668.   ;;
  1669.   *)
  1670.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1671.   for ac_dir in $PATH; do
  1672.     test -z "$ac_dir" && ac_dir=.
  1673.     if test -f $ac_dir/$ac_word; then
  1674.       ac_cv_path_SGITOPS="$ac_dir/$ac_word"
  1675.       break
  1676.     fi
  1677.   done
  1678.   IFS="$ac_save_ifs"
  1679.   ;;
  1680. esac
  1681. fi
  1682. SGITOPS="$ac_cv_path_SGITOPS"
  1683. if test -n "$SGITOPS"; then
  1684.   echo "$ac_t""$SGITOPS" 1>&6
  1685. else
  1686.   echo "$ac_t""no" 1>&6
  1687. fi
  1688.  
  1689. test -n "$SGITOPS" && break
  1690. done
  1691.  
  1692. if test -n "$SGITOPS"; then
  1693.   cat >> confdefs.h <<\EOF
  1694. #define HAVE_SGITOPS 1
  1695. EOF
  1696.  
  1697.   cat >> confdefs.h <<EOF
  1698. #define PATH_SGITOPS $SGITOPS
  1699. EOF
  1700.  
  1701. fi
  1702. for ac_prog in tifftopnm
  1703. do
  1704. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1705. set dummy $ac_prog; ac_word=$2
  1706. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1707. if eval "test \"`echo '$''{'ac_cv_path_TIFFTOPNM'+set}'`\" = set"; then
  1708.   echo $ac_n "(cached) $ac_c" 1>&6
  1709. else
  1710.   case "$TIFFTOPNM" in
  1711.   /*)
  1712.   ac_cv_path_TIFFTOPNM="$TIFFTOPNM" # Let the user override the test with a path.
  1713.   ;;
  1714.   *)
  1715.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1716.   for ac_dir in $PATH; do
  1717.     test -z "$ac_dir" && ac_dir=.
  1718.     if test -f $ac_dir/$ac_word; then
  1719.       ac_cv_path_TIFFTOPNM="$ac_dir/$ac_word"
  1720.       break
  1721.     fi
  1722.   done
  1723.   IFS="$ac_save_ifs"
  1724.   ;;
  1725. esac
  1726. fi
  1727. TIFFTOPNM="$ac_cv_path_TIFFTOPNM"
  1728. if test -n "$TIFFTOPNM"; then
  1729.   echo "$ac_t""$TIFFTOPNM" 1>&6
  1730. else
  1731.   echo "$ac_t""no" 1>&6
  1732. fi
  1733.  
  1734. test -n "$TIFFTOPNM" && break
  1735. done
  1736.  
  1737. if test -n "$TIFFTOPNM"; then
  1738.   cat >> confdefs.h <<\EOF
  1739. #define HAVE_TIFFTOPNM 1
  1740. EOF
  1741.  
  1742.   cat >> confdefs.h <<EOF
  1743. #define PATH_TIFFTOPNM $TIFFTOPNM
  1744. EOF
  1745.  
  1746. fi
  1747. for ac_prog in bmptopnm bmptoppm
  1748. do
  1749. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1750. set dummy $ac_prog; ac_word=$2
  1751. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1752. if eval "test \"`echo '$''{'ac_cv_path_BMPTOPPM'+set}'`\" = set"; then
  1753.   echo $ac_n "(cached) $ac_c" 1>&6
  1754. else
  1755.   case "$BMPTOPPM" in
  1756.   /*)
  1757.   ac_cv_path_BMPTOPPM="$BMPTOPPM" # Let the user override the test with a path.
  1758.   ;;
  1759.   *)
  1760.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1761.   for ac_dir in $PATH; do
  1762.     test -z "$ac_dir" && ac_dir=.
  1763.     if test -f $ac_dir/$ac_word; then
  1764.       ac_cv_path_BMPTOPPM="$ac_dir/$ac_word"
  1765.       break
  1766.     fi
  1767.   done
  1768.   IFS="$ac_save_ifs"
  1769.   ;;
  1770. esac
  1771. fi
  1772. BMPTOPPM="$ac_cv_path_BMPTOPPM"
  1773. if test -n "$BMPTOPPM"; then
  1774.   echo "$ac_t""$BMPTOPPM" 1>&6
  1775. else
  1776.   echo "$ac_t""no" 1>&6
  1777. fi
  1778.  
  1779. test -n "$BMPTOPPM" && break
  1780. done
  1781.  
  1782. if test -n "$BMPTOPPM"; then
  1783.   cat >> confdefs.h <<\EOF
  1784. #define HAVE_BMPTOPPM 1
  1785. EOF
  1786.  
  1787.   cat >> confdefs.h <<EOF
  1788. #define PATH_BMPTOPPM $BMPTOPPM
  1789. EOF
  1790.  
  1791. fi
  1792. for ac_prog in rasttopnm
  1793. do
  1794. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1795. set dummy $ac_prog; ac_word=$2
  1796. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1797. if eval "test \"`echo '$''{'ac_cv_path_RASTTOPNM'+set}'`\" = set"; then
  1798.   echo $ac_n "(cached) $ac_c" 1>&6
  1799. else
  1800.   case "$RASTTOPNM" in
  1801.   /*)
  1802.   ac_cv_path_RASTTOPNM="$RASTTOPNM" # Let the user override the test with a path.
  1803.   ;;
  1804.   *)
  1805.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1806.   for ac_dir in $PATH; do
  1807.     test -z "$ac_dir" && ac_dir=.
  1808.     if test -f $ac_dir/$ac_word; then
  1809.       ac_cv_path_RASTTOPNM="$ac_dir/$ac_word"
  1810.       break
  1811.     fi
  1812.   done
  1813.   IFS="$ac_save_ifs"
  1814.   ;;
  1815. esac
  1816. fi
  1817. RASTTOPNM="$ac_cv_path_RASTTOPNM"
  1818. if test -n "$RASTTOPNM"; then
  1819.   echo "$ac_t""$RASTTOPNM" 1>&6
  1820. else
  1821.   echo "$ac_t""no" 1>&6
  1822. fi
  1823.  
  1824. test -n "$RASTTOPNM" && break
  1825. done
  1826.  
  1827. if test -n "$RASTTOPNM"; then
  1828.   cat >> confdefs.h <<\EOF
  1829. #define HAVE_RASTTOPNM 1
  1830. EOF
  1831.  
  1832.   cat >> confdefs.h <<EOF
  1833. #define PATH_RASTTOPNM $RASTTOPNM
  1834. EOF
  1835.  
  1836. fi
  1837. for ac_prog in nenscript enscript
  1838. do
  1839. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1840. set dummy $ac_prog; ac_word=$2
  1841. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1842. if eval "test \"`echo '$''{'ac_cv_path_NENSCRIPT'+set}'`\" = set"; then
  1843.   echo $ac_n "(cached) $ac_c" 1>&6
  1844. else
  1845.   case "$NENSCRIPT" in
  1846.   /*)
  1847.   ac_cv_path_NENSCRIPT="$NENSCRIPT" # Let the user override the test with a path.
  1848.   ;;
  1849.   *)
  1850.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1851.   for ac_dir in $PATH; do
  1852.     test -z "$ac_dir" && ac_dir=.
  1853.     if test -f $ac_dir/$ac_word; then
  1854.       ac_cv_path_NENSCRIPT="$ac_dir/$ac_word"
  1855.       break
  1856.     fi
  1857.   done
  1858.   IFS="$ac_save_ifs"
  1859.   ;;
  1860. esac
  1861. fi
  1862. NENSCRIPT="$ac_cv_path_NENSCRIPT"
  1863. if test -n "$NENSCRIPT"; then
  1864.   echo "$ac_t""$NENSCRIPT" 1>&6
  1865. else
  1866.   echo "$ac_t""no" 1>&6
  1867. fi
  1868.  
  1869. test -n "$NENSCRIPT" && break
  1870. done
  1871.  
  1872. if test -n "$NENSCRIPT"; then
  1873.   cat >> confdefs.h <<\EOF
  1874. #define HAVE_NENSCRIPT 1
  1875. EOF
  1876.  
  1877.   cat >> confdefs.h <<EOF
  1878. #define PATH_NENSCRIPT $NENSCRIPT
  1879. EOF
  1880.  
  1881. fi
  1882. for ac_prog in a2x
  1883. do
  1884. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1885. set dummy $ac_prog; ac_word=$2
  1886. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1887. if eval "test \"`echo '$''{'ac_cv_path_A2X'+set}'`\" = set"; then
  1888.   echo $ac_n "(cached) $ac_c" 1>&6
  1889. else
  1890.   case "$A2X" in
  1891.   /*)
  1892.   ac_cv_path_A2X="$A2X" # Let the user override the test with a path.
  1893.   ;;
  1894.   *)
  1895.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1896.   for ac_dir in $PATH; do
  1897.     test -z "$ac_dir" && ac_dir=.
  1898.     if test -f $ac_dir/$ac_word; then
  1899.       ac_cv_path_A2X="$ac_dir/$ac_word"
  1900.       break
  1901.     fi
  1902.   done
  1903.   IFS="$ac_save_ifs"
  1904.   ;;
  1905. esac
  1906. fi
  1907. A2X="$ac_cv_path_A2X"
  1908. if test -n "$A2X"; then
  1909.   echo "$ac_t""$A2X" 1>&6
  1910. else
  1911.   echo "$ac_t""no" 1>&6
  1912. fi
  1913.  
  1914. test -n "$A2X" && break
  1915. done
  1916.  
  1917. if test -n "$A2X"; then
  1918.   cat >> confdefs.h <<\EOF
  1919. #define HAVE_A2X 1
  1920. EOF
  1921.  
  1922.   cat >> confdefs.h <<EOF
  1923. #define PATH_A2X $A2X
  1924. EOF
  1925.  
  1926. fi
  1927. for ac_prog in a2ps
  1928. do
  1929. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1930. set dummy $ac_prog; ac_word=$2
  1931. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1932. if eval "test \"`echo '$''{'ac_cv_path_A2PS'+set}'`\" = set"; then
  1933.   echo $ac_n "(cached) $ac_c" 1>&6
  1934. else
  1935.   case "$A2PS" in
  1936.   /*)
  1937.   ac_cv_path_A2PS="$A2PS" # Let the user override the test with a path.
  1938.   ;;
  1939.   *)
  1940.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1941.   for ac_dir in $PATH; do
  1942.     test -z "$ac_dir" && ac_dir=.
  1943.     if test -f $ac_dir/$ac_word; then
  1944.       ac_cv_path_A2PS="$ac_dir/$ac_word"
  1945.       break
  1946.     fi
  1947.   done
  1948.   IFS="$ac_save_ifs"
  1949.   ;;
  1950. esac
  1951. fi
  1952. A2PS="$ac_cv_path_A2PS"
  1953. if test -n "$A2PS"; then
  1954.   echo "$ac_t""$A2PS" 1>&6
  1955. else
  1956.   echo "$ac_t""no" 1>&6
  1957. fi
  1958.  
  1959. test -n "$A2PS" && break
  1960. done
  1961.  
  1962. if test -n "$A2PS"; then
  1963.   cat >> confdefs.h <<\EOF
  1964. #define HAVE_A2PS 1
  1965. EOF
  1966.  
  1967.   cat >> confdefs.h <<EOF
  1968. #define PATH_A2PS $A2PS
  1969. EOF
  1970.  
  1971. fi
  1972. for ac_prog in fig2dev
  1973. do
  1974. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1975. set dummy $ac_prog; ac_word=$2
  1976. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1977. if eval "test \"`echo '$''{'ac_cv_path_FIG2DEV'+set}'`\" = set"; then
  1978.   echo $ac_n "(cached) $ac_c" 1>&6
  1979. else
  1980.   case "$FIG2DEV" in
  1981.   /*)
  1982.   ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
  1983.   ;;
  1984.   *)
  1985.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1986.   for ac_dir in $PATH; do
  1987.     test -z "$ac_dir" && ac_dir=.
  1988.     if test -f $ac_dir/$ac_word; then
  1989.       ac_cv_path_FIG2DEV="$ac_dir/$ac_word"
  1990.       break
  1991.     fi
  1992.   done
  1993.   IFS="$ac_save_ifs"
  1994.   ;;
  1995. esac
  1996. fi
  1997. FIG2DEV="$ac_cv_path_FIG2DEV"
  1998. if test -n "$FIG2DEV"; then
  1999.   echo "$ac_t""$FIG2DEV" 1>&6
  2000. else
  2001.   echo "$ac_t""no" 1>&6
  2002. fi
  2003.  
  2004. test -n "$FIG2DEV" && break
  2005. done
  2006.  
  2007. if test -n "$FIG2DEV"; then
  2008.   cat >> confdefs.h <<\EOF
  2009. #define HAVE_FIG2DEV 1
  2010. EOF
  2011.  
  2012.   cat >> confdefs.h <<EOF
  2013. #define PATH_FIG2DEV $FIG2DEV
  2014. EOF
  2015.  
  2016. fi
  2017.  
  2018. echo $ac_n "checking whether zcat is really gzip""... $ac_c" 1>&6
  2019.  
  2020. if eval "test \"`echo '$''{'ac_cv_prog_gnu_zcat'+set}'`\" = set"; then
  2021.   echo $ac_n "(cached) $ac_c" 1>&6
  2022. else
  2023.   if echo -e "\37\213\10\10\273\31\152\57\4\3\170\0\3\0\0\0\0\0\0\0\0\0\c"| $ZCAT \
  2024.     2>&1 >/dev/null || grep "GNU" $ZCAT 2>&1 >/dev/null
  2025. then
  2026.     ac_cv_prog_gnu_zcat=yes
  2027. else
  2028.     ac_cv_prog_gnu_zcat=no
  2029. fi
  2030. fi
  2031.  
  2032.  
  2033. if test "$ac_cv_prog_gnu_zcat" = "yes" 
  2034. then
  2035.     cat >> confdefs.h <<\EOF
  2036. #define ZCAT_IS_GZIP 1
  2037. EOF
  2038.  
  2039. fi
  2040. echo "$ac_t""$ac_cv_prog_gnu_zcat" 1>&6
  2041.  
  2042.  
  2043. echo $ac_n "checking whether ditroff works""... $ac_c" 1>&6
  2044.  
  2045. if eval "test \"`echo '$''{'ac_cv_prog_ditroff'+set}'`\" = set"; then
  2046.   echo $ac_n "(cached) $ac_c" 1>&6
  2047. else
  2048.   if cat << EOF | $DITROFF 2>&1 >/dev/null
  2049. x T ps
  2050. x res 72000 1 1
  2051. x init
  2052. p1
  2053. x trailer
  2054. V792000
  2055. x stop
  2056. EOF
  2057. then
  2058.     ac_cv_prog_ditroff=yes
  2059. else
  2060.     ac_cv_prog_ditroff=no
  2061. fi
  2062. fi
  2063.  
  2064.  
  2065. if test "$ac_cv_prog_ditroff" = "yes" 
  2066. then
  2067.     cat >> confdefs.h <<\EOF
  2068. #define DITROFF_WORKS 1
  2069. EOF
  2070.  
  2071. fi
  2072. echo "$ac_t""$ac_cv_prog_ditroff" 1>&6
  2073.  
  2074.  
  2075. ac_save_path="$PATH"
  2076. PATH=$PATH:/usr/libexec:/usr/sbin:/usr/lib:/usr/etc:/etc
  2077. for ac_prog in sendmail smail mail
  2078. do
  2079. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2080. set dummy $ac_prog; ac_word=$2
  2081. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2082. if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
  2083.   echo $ac_n "(cached) $ac_c" 1>&6
  2084. else
  2085.   case "$SENDMAIL" in
  2086.   /*)
  2087.   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
  2088.   ;;
  2089.   *)
  2090.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2091.   for ac_dir in $PATH; do
  2092.     test -z "$ac_dir" && ac_dir=.
  2093.     if test -f $ac_dir/$ac_word; then
  2094.       ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
  2095.       break
  2096.     fi
  2097.   done
  2098.   IFS="$ac_save_ifs"
  2099.   ;;
  2100. esac
  2101. fi
  2102. SENDMAIL="$ac_cv_path_SENDMAIL"
  2103. if test -n "$SENDMAIL"; then
  2104.   echo "$ac_t""$SENDMAIL" 1>&6
  2105. else
  2106.   echo "$ac_t""no" 1>&6
  2107. fi
  2108.  
  2109. test -n "$SENDMAIL" && break
  2110. done
  2111.  
  2112. if test -n "$SENDMAIL"; then
  2113.   cat >> confdefs.h <<\EOF
  2114. #define HAVE_SENDMAIL 1
  2115. EOF
  2116.  
  2117.   cat >> confdefs.h <<EOF
  2118. #define PATH_SENDMAIL "$SENDMAIL"
  2119. EOF
  2120.  
  2121. fi
  2122. PATH="$ac_save_path"
  2123.  
  2124. for ac_hdr in memory.h
  2125. do
  2126. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2127. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2128. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2129.   echo $ac_n "(cached) $ac_c" 1>&6
  2130. else
  2131.   cat > conftest.$ac_ext <<EOF
  2132. #line 2133 "configure"
  2133. #include "confdefs.h"
  2134. #include <$ac_hdr>
  2135. EOF
  2136. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2137. ac_err=`grep -v '^ *+' conftest.out`
  2138. if test -z "$ac_err"; then
  2139.   rm -rf conftest*
  2140.   eval "ac_cv_header_$ac_safe=yes"
  2141. else
  2142.   echo "$ac_err" >&5
  2143.   rm -rf conftest*
  2144.   eval "ac_cv_header_$ac_safe=no"
  2145. fi
  2146. rm -f conftest*
  2147. fi
  2148. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2149.   echo "$ac_t""yes" 1>&6
  2150.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2151.   cat >> confdefs.h <<EOF
  2152. #define $ac_tr_hdr 1
  2153. EOF
  2154.  
  2155. else
  2156.   echo "$ac_t""no" 1>&6
  2157. fi
  2158. done
  2159.  
  2160. for ac_hdr in paths.h
  2161. do
  2162. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2163. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2164. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2165.   echo $ac_n "(cached) $ac_c" 1>&6
  2166. else
  2167.   cat > conftest.$ac_ext <<EOF
  2168. #line 2169 "configure"
  2169. #include "confdefs.h"
  2170. #include <$ac_hdr>
  2171. EOF
  2172. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2173. ac_err=`grep -v '^ *+' conftest.out`
  2174. if test -z "$ac_err"; then
  2175.   rm -rf conftest*
  2176.   eval "ac_cv_header_$ac_safe=yes"
  2177. else
  2178.   echo "$ac_err" >&5
  2179.   rm -rf conftest*
  2180.   eval "ac_cv_header_$ac_safe=no"
  2181. fi
  2182. rm -f conftest*
  2183. fi
  2184. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2185.   echo "$ac_t""yes" 1>&6
  2186.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2187.   cat >> confdefs.h <<EOF
  2188. #define $ac_tr_hdr 1
  2189. EOF
  2190.  
  2191. else
  2192.   echo "$ac_t""no" 1>&6
  2193. fi
  2194. done
  2195.  
  2196. for ac_hdr in stdlib.h
  2197. do
  2198. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2199. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2200. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2201.   echo $ac_n "(cached) $ac_c" 1>&6
  2202. else
  2203.   cat > conftest.$ac_ext <<EOF
  2204. #line 2205 "configure"
  2205. #include "confdefs.h"
  2206. #include <$ac_hdr>
  2207. EOF
  2208. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2209. ac_err=`grep -v '^ *+' conftest.out`
  2210. if test -z "$ac_err"; then
  2211.   rm -rf conftest*
  2212.   eval "ac_cv_header_$ac_safe=yes"
  2213. else
  2214.   echo "$ac_err" >&5
  2215.   rm -rf conftest*
  2216.   eval "ac_cv_header_$ac_safe=no"
  2217. fi
  2218. rm -f conftest*
  2219. fi
  2220. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2221.   echo "$ac_t""yes" 1>&6
  2222.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2223.   cat >> confdefs.h <<EOF
  2224. #define $ac_tr_hdr 1
  2225. EOF
  2226.  
  2227. else
  2228.   echo "$ac_t""no" 1>&6
  2229. fi
  2230. done
  2231.  
  2232. for ac_hdr in unistd.h
  2233. do
  2234. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2235. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2236. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2237.   echo $ac_n "(cached) $ac_c" 1>&6
  2238. else
  2239.   cat > conftest.$ac_ext <<EOF
  2240. #line 2241 "configure"
  2241. #include "confdefs.h"
  2242. #include <$ac_hdr>
  2243. EOF
  2244. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2245. ac_err=`grep -v '^ *+' conftest.out`
  2246. if test -z "$ac_err"; then
  2247.   rm -rf conftest*
  2248.   eval "ac_cv_header_$ac_safe=yes"
  2249. else
  2250.   echo "$ac_err" >&5
  2251.   rm -rf conftest*
  2252.   eval "ac_cv_header_$ac_safe=no"
  2253. fi
  2254. rm -f conftest*
  2255. fi
  2256. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2257.   echo "$ac_t""yes" 1>&6
  2258.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2259.   cat >> confdefs.h <<EOF
  2260. #define $ac_tr_hdr 1
  2261. EOF
  2262.  
  2263. else
  2264.   echo "$ac_t""no" 1>&6
  2265. fi
  2266. done
  2267.  
  2268. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  2269. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  2270.   echo $ac_n "(cached) $ac_c" 1>&6
  2271. else
  2272.   cat > conftest.$ac_ext <<EOF
  2273. #line 2274 "configure"
  2274. #include "confdefs.h"
  2275. #include <sys/types.h>
  2276. #include <sys/wait.h>
  2277. #ifndef WEXITSTATUS
  2278. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2279. #endif
  2280. #ifndef WIFEXITED
  2281. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2282. #endif
  2283. int main() { return 0; }
  2284. int t() {
  2285. int s;
  2286. wait (&s);
  2287. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  2288. ; return 0; }
  2289. EOF
  2290. if eval $ac_compile; then
  2291.   rm -rf conftest*
  2292.   ac_cv_header_sys_wait_h=yes
  2293. else
  2294.   rm -rf conftest*
  2295.   ac_cv_header_sys_wait_h=no
  2296. fi
  2297. rm -f conftest*
  2298.  
  2299. fi
  2300.  
  2301. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  2302. if test $ac_cv_header_sys_wait_h = yes; then
  2303.   cat >> confdefs.h <<\EOF
  2304. #define HAVE_SYS_WAIT_H 1
  2305. EOF
  2306.  
  2307. fi
  2308.  
  2309.  
  2310. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2311. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2312.   echo $ac_n "(cached) $ac_c" 1>&6
  2313. else
  2314.   cat > conftest.$ac_ext <<EOF
  2315. #line 2316 "configure"
  2316. #include "confdefs.h"
  2317.  
  2318. int main() { return 0; }
  2319. int t() {
  2320.  
  2321. /* Ultrix mips cc rejects this.  */
  2322. typedef int charset[2]; const charset x;
  2323. /* SunOS 4.1.1 cc rejects this.  */
  2324. char const *const *ccp;
  2325. char **p;
  2326. /* NEC SVR4.0.2 mips cc rejects this.  */
  2327. struct point {int x, y;};
  2328. static struct point const zero = {0,0};
  2329. /* AIX XL C 1.02.0.0 rejects this.
  2330.    It does not let you subtract one const X* pointer from another in an arm
  2331.    of an if-expression whose if-part is not a constant expression */
  2332. const char *g = "string";
  2333. ccp = &g + (g ? g-g : 0);
  2334. /* HPUX 7.0 cc rejects these. */
  2335. ++ccp;
  2336. p = (char**) ccp;
  2337. ccp = (char const *const *) p;
  2338. { /* SCO 3.2v4 cc rejects this.  */
  2339.   char *t;
  2340.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2341.  
  2342.   *t++ = 0;
  2343. }
  2344. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2345.   int x[] = {25, 17};
  2346.   const int *foo = &x[0];
  2347.   ++foo;
  2348. }
  2349. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2350.   typedef const int *iptr;
  2351.   iptr p = 0;
  2352.   ++p;
  2353. }
  2354. { /* AIX XL C 1.02.0.0 rejects this saying
  2355.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2356.   struct s { int j; const int *ap[3]; };
  2357.   struct s *b; b->j = 5;
  2358. }
  2359. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2360.   const int foo = 10;
  2361. }
  2362.  
  2363. ; return 0; }
  2364. EOF
  2365. if eval $ac_compile; then
  2366.   rm -rf conftest*
  2367.   ac_cv_c_const=yes
  2368. else
  2369.   rm -rf conftest*
  2370.   ac_cv_c_const=no
  2371. fi
  2372. rm -f conftest*
  2373.  
  2374. fi
  2375.  
  2376. echo "$ac_t""$ac_cv_c_const" 1>&6
  2377. if test $ac_cv_c_const = no; then
  2378.   cat >> confdefs.h <<\EOF
  2379. #define const 
  2380. EOF
  2381.  
  2382. fi
  2383.  
  2384. # If we cannot run a trivial program, we must be cross compiling.
  2385. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  2386. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  2387.   echo $ac_n "(cached) $ac_c" 1>&6
  2388. else
  2389.   if test "$cross_compiling" = yes; then
  2390.   ac_cv_c_cross=yes
  2391. else
  2392. cat > conftest.$ac_ext <<EOF
  2393. #line 2394 "configure"
  2394. #include "confdefs.h"
  2395. main(){return(0);}
  2396. EOF
  2397. eval $ac_link
  2398. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2399.   ac_cv_c_cross=no
  2400. else
  2401.   ac_cv_c_cross=yes
  2402. fi
  2403. fi
  2404. rm -fr conftest*
  2405. fi
  2406.  
  2407. echo "$ac_t""$ac_cv_c_cross" 1>&6
  2408. cross_compiling=$ac_cv_c_cross
  2409.  
  2410. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2411. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2412.   echo $ac_n "(cached) $ac_c" 1>&6
  2413. else
  2414.   cat > conftest.$ac_ext <<EOF
  2415. #line 2416 "configure"
  2416. #include "confdefs.h"
  2417. #include <stdlib.h>
  2418. #include <stdarg.h>
  2419. #include <string.h>
  2420. #include <float.h>
  2421. EOF
  2422. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2423. ac_err=`grep -v '^ *+' conftest.out`
  2424. if test -z "$ac_err"; then
  2425.   rm -rf conftest*
  2426.   ac_cv_header_stdc=yes
  2427. else
  2428.   echo "$ac_err" >&5
  2429.   rm -rf conftest*
  2430.   ac_cv_header_stdc=no
  2431. fi
  2432. rm -f conftest*
  2433.  
  2434. if test $ac_cv_header_stdc = yes; then
  2435.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2436. cat > conftest.$ac_ext <<EOF
  2437. #line 2438 "configure"
  2438. #include "confdefs.h"
  2439. #include <string.h>
  2440. EOF
  2441. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2442.   egrep "memchr" >/dev/null 2>&1; then
  2443.   :
  2444. else
  2445.   rm -rf conftest*
  2446.   ac_cv_header_stdc=no
  2447. fi
  2448. rm -f conftest*
  2449.  
  2450. fi
  2451.  
  2452. if test $ac_cv_header_stdc = yes; then
  2453.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2454. cat > conftest.$ac_ext <<EOF
  2455. #line 2456 "configure"
  2456. #include "confdefs.h"
  2457. #include <stdlib.h>
  2458. EOF
  2459. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2460.   egrep "free" >/dev/null 2>&1; then
  2461.   :
  2462. else
  2463.   rm -rf conftest*
  2464.   ac_cv_header_stdc=no
  2465. fi
  2466. rm -f conftest*
  2467.  
  2468. fi
  2469.  
  2470. if test $ac_cv_header_stdc = yes; then
  2471.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2472. if test "$cross_compiling" = yes; then
  2473.   :
  2474. else
  2475. cat > conftest.$ac_ext <<EOF
  2476. #line 2477 "configure"
  2477. #include "confdefs.h"
  2478. #include <ctype.h>
  2479. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2480. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2481. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2482. int main () { int i; for (i = 0; i < 256; i++)
  2483. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2484. exit (0); }
  2485.  
  2486. EOF
  2487. eval $ac_link
  2488. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2489.   :
  2490. else
  2491.   ac_cv_header_stdc=no
  2492. fi
  2493. fi
  2494. rm -fr conftest*
  2495. fi
  2496. fi
  2497.  
  2498. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2499. if test $ac_cv_header_stdc = yes; then
  2500.   cat >> confdefs.h <<\EOF
  2501. #define STDC_HEADERS 1
  2502. EOF
  2503.  
  2504. fi
  2505.  
  2506. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2507. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2508.   echo $ac_n "(cached) $ac_c" 1>&6
  2509. else
  2510.   cat > conftest.$ac_ext <<EOF
  2511. #line 2512 "configure"
  2512. #include "confdefs.h"
  2513. #include <sys/types.h>
  2514. #if STDC_HEADERS
  2515. #include <stdlib.h>
  2516. #endif
  2517. EOF
  2518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2519.   egrep "pid_t" >/dev/null 2>&1; then
  2520.   rm -rf conftest*
  2521.   ac_cv_type_pid_t=yes
  2522. else
  2523.   rm -rf conftest*
  2524.   ac_cv_type_pid_t=no
  2525. fi
  2526. rm -f conftest*
  2527.  
  2528. fi
  2529. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2530. if test $ac_cv_type_pid_t = no; then
  2531.   cat >> confdefs.h <<\EOF
  2532. #define pid_t int
  2533. EOF
  2534.  
  2535. fi
  2536.  
  2537. for ac_func in dup2
  2538. do
  2539. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2540. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2541.   echo $ac_n "(cached) $ac_c" 1>&6
  2542. else
  2543.   cat > conftest.$ac_ext <<EOF
  2544. #line 2545 "configure"
  2545. #include "confdefs.h"
  2546. /* System header to define __stub macros and hopefully few prototypes,
  2547.     which can conflict with char $ac_func(); below.  */
  2548. #include <assert.h>
  2549. /* Override any gcc2 internal prototype to avoid an error.  */
  2550. char $ac_func();
  2551.  
  2552. int main() { return 0; }
  2553. int t() {
  2554.  
  2555. /* The GNU C library defines this for functions which it implements
  2556.     to always fail with ENOSYS.  Some functions are actually named
  2557.     something starting with __ and the normal name is an alias.  */
  2558. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2559. choke me
  2560. #else
  2561. $ac_func();
  2562. #endif
  2563.  
  2564. ; return 0; }
  2565. EOF
  2566. if eval $ac_link; then
  2567.   rm -rf conftest*
  2568.   eval "ac_cv_func_$ac_func=yes"
  2569. else
  2570.   rm -rf conftest*
  2571.   eval "ac_cv_func_$ac_func=no"
  2572. fi
  2573. rm -f conftest*
  2574.  
  2575. fi
  2576. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2577.   echo "$ac_t""yes" 1>&6
  2578.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2579.   cat >> confdefs.h <<EOF
  2580. #define $ac_tr_func 1
  2581. EOF
  2582.  
  2583. else
  2584.   echo "$ac_t""no" 1>&6
  2585. fi
  2586. done
  2587.  
  2588. for ac_func in tmpnam
  2589. do
  2590. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2591. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2592.   echo $ac_n "(cached) $ac_c" 1>&6
  2593. else
  2594.   cat > conftest.$ac_ext <<EOF
  2595. #line 2596 "configure"
  2596. #include "confdefs.h"
  2597. /* System header to define __stub macros and hopefully few prototypes,
  2598.     which can conflict with char $ac_func(); below.  */
  2599. #include <assert.h>
  2600. /* Override any gcc2 internal prototype to avoid an error.  */
  2601. char $ac_func();
  2602.  
  2603. int main() { return 0; }
  2604. int t() {
  2605.  
  2606. /* The GNU C library defines this for functions which it implements
  2607.     to always fail with ENOSYS.  Some functions are actually named
  2608.     something starting with __ and the normal name is an alias.  */
  2609. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2610. choke me
  2611. #else
  2612. $ac_func();
  2613. #endif
  2614.  
  2615. ; return 0; }
  2616. EOF
  2617. if eval $ac_link; then
  2618.   rm -rf conftest*
  2619.   eval "ac_cv_func_$ac_func=yes"
  2620. else
  2621.   rm -rf conftest*
  2622.   eval "ac_cv_func_$ac_func=no"
  2623. fi
  2624. rm -f conftest*
  2625.  
  2626. fi
  2627. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2628.   echo "$ac_t""yes" 1>&6
  2629.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2630.   cat >> confdefs.h <<EOF
  2631. #define $ac_tr_func 1
  2632. EOF
  2633.  
  2634. else
  2635.   echo "$ac_t""no" 1>&6
  2636. fi
  2637. done
  2638.  
  2639. for ac_func in waitpid
  2640. do
  2641. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2642. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2643.   echo $ac_n "(cached) $ac_c" 1>&6
  2644. else
  2645.   cat > conftest.$ac_ext <<EOF
  2646. #line 2647 "configure"
  2647. #include "confdefs.h"
  2648. /* System header to define __stub macros and hopefully few prototypes,
  2649.     which can conflict with char $ac_func(); below.  */
  2650. #include <assert.h>
  2651. /* Override any gcc2 internal prototype to avoid an error.  */
  2652. char $ac_func();
  2653.  
  2654. int main() { return 0; }
  2655. int t() {
  2656.  
  2657. /* The GNU C library defines this for functions which it implements
  2658.     to always fail with ENOSYS.  Some functions are actually named
  2659.     something starting with __ and the normal name is an alias.  */
  2660. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2661. choke me
  2662. #else
  2663. $ac_func();
  2664. #endif
  2665.  
  2666. ; return 0; }
  2667. EOF
  2668. if eval $ac_link; then
  2669.   rm -rf conftest*
  2670.   eval "ac_cv_func_$ac_func=yes"
  2671. else
  2672.   rm -rf conftest*
  2673.   eval "ac_cv_func_$ac_func=no"
  2674. fi
  2675. rm -f conftest*
  2676.  
  2677. fi
  2678. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2679.   echo "$ac_t""yes" 1>&6
  2680.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2681.   cat >> confdefs.h <<EOF
  2682. #define $ac_tr_func 1
  2683. EOF
  2684.  
  2685. else
  2686.   echo "$ac_t""no" 1>&6
  2687. fi
  2688. done
  2689.  
  2690. for ac_func in wait4
  2691. do
  2692. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2693. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2694.   echo $ac_n "(cached) $ac_c" 1>&6
  2695. else
  2696.   cat > conftest.$ac_ext <<EOF
  2697. #line 2698 "configure"
  2698. #include "confdefs.h"
  2699. /* System header to define __stub macros and hopefully few prototypes,
  2700.     which can conflict with char $ac_func(); below.  */
  2701. #include <assert.h>
  2702. /* Override any gcc2 internal prototype to avoid an error.  */
  2703. char $ac_func();
  2704.  
  2705. int main() { return 0; }
  2706. int t() {
  2707.  
  2708. /* The GNU C library defines this for functions which it implements
  2709.     to always fail with ENOSYS.  Some functions are actually named
  2710.     something starting with __ and the normal name is an alias.  */
  2711. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2712. choke me
  2713. #else
  2714. $ac_func();
  2715. #endif
  2716.  
  2717. ; return 0; }
  2718. EOF
  2719. if eval $ac_link; then
  2720.   rm -rf conftest*
  2721.   eval "ac_cv_func_$ac_func=yes"
  2722. else
  2723.   rm -rf conftest*
  2724.   eval "ac_cv_func_$ac_func=no"
  2725. fi
  2726. rm -f conftest*
  2727.  
  2728. fi
  2729. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2730.   echo "$ac_t""yes" 1>&6
  2731.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2732.   cat >> confdefs.h <<EOF
  2733. #define $ac_tr_func 1
  2734. EOF
  2735.  
  2736. else
  2737.   echo "$ac_t""no" 1>&6
  2738. fi
  2739. done
  2740.  
  2741. for ac_func in unsetenv
  2742. do
  2743. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2744. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2745.   echo $ac_n "(cached) $ac_c" 1>&6
  2746. else
  2747.   cat > conftest.$ac_ext <<EOF
  2748. #line 2749 "configure"
  2749. #include "confdefs.h"
  2750. /* System header to define __stub macros and hopefully few prototypes,
  2751.     which can conflict with char $ac_func(); below.  */
  2752. #include <assert.h>
  2753. /* Override any gcc2 internal prototype to avoid an error.  */
  2754. char $ac_func();
  2755.  
  2756. int main() { return 0; }
  2757. int t() {
  2758.  
  2759. /* The GNU C library defines this for functions which it implements
  2760.     to always fail with ENOSYS.  Some functions are actually named
  2761.     something starting with __ and the normal name is an alias.  */
  2762. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2763. choke me
  2764. #else
  2765. $ac_func();
  2766. #endif
  2767.  
  2768. ; return 0; }
  2769. EOF
  2770. if eval $ac_link; then
  2771.   rm -rf conftest*
  2772.   eval "ac_cv_func_$ac_func=yes"
  2773. else
  2774.   rm -rf conftest*
  2775.   eval "ac_cv_func_$ac_func=no"
  2776. fi
  2777. rm -f conftest*
  2778.  
  2779. fi
  2780. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2781.   echo "$ac_t""yes" 1>&6
  2782.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2783.   cat >> confdefs.h <<EOF
  2784. #define $ac_tr_func 1
  2785. EOF
  2786.  
  2787. else
  2788.   echo "$ac_t""no" 1>&6
  2789. fi
  2790. done
  2791.  
  2792.  
  2793. trap '' 1 2 15
  2794. cat > confcache <<\EOF
  2795. # This file is a shell script that caches the results of configure
  2796. # tests run on this system so they can be shared between configure
  2797. # scripts and configure runs.  It is not useful on other systems.
  2798. # If it contains results you don't want to keep, you may remove or edit it.
  2799. #
  2800. # By default, configure uses ./config.cache as the cache file,
  2801. # creating it if it does not exist already.  You can give configure
  2802. # the --cache-file=FILE option to use a different cache file; that is
  2803. # what configure does when it calls configure scripts in
  2804. # subdirectories, so they share the cache.
  2805. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2806. # config.status only pays attention to the cache file if you give it the
  2807. # --recheck option to rerun configure.
  2808. #
  2809. EOF
  2810. # Ultrix sh set writes to stderr and can't be redirected directly,
  2811. # and sets the high bit in the cache file unless we assign to the vars.
  2812. (set) 2>&1 |
  2813.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2814.   >> confcache
  2815. if cmp -s $cache_file confcache; then
  2816.   :
  2817. else
  2818.   if test -w $cache_file; then
  2819.     echo "updating cache $cache_file"
  2820.     cat confcache > $cache_file
  2821.   else
  2822.     echo "not updating unwritable cache $cache_file"
  2823.   fi
  2824. fi
  2825. rm -f confcache
  2826.  
  2827. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2828.  
  2829. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2830. # Let make expand exec_prefix.
  2831. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2832.  
  2833. # Any assignment to VPATH causes Sun make to only execute
  2834. # the first set of double-colon rules, so remove it if not needed.
  2835. # If there is a colon in the path, we need to keep it.
  2836. if test "x$srcdir" = x.; then
  2837.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2838. fi
  2839.  
  2840. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2841.  
  2842. DEFS=-DHAVE_CONFIG_H
  2843.  
  2844. # Without the "./", some shells look in PATH for config.status.
  2845. : ${CONFIG_STATUS=./config.status}
  2846.  
  2847. echo creating $CONFIG_STATUS
  2848. rm -f $CONFIG_STATUS
  2849. cat > $CONFIG_STATUS <<EOF
  2850. #! /bin/sh
  2851. # Generated automatically by configure.
  2852. # Run this file to recreate the current configuration.
  2853. # This directory was configured as follows,
  2854. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2855. #
  2856. # $0 $ac_configure_args
  2857. #
  2858. # Compiler output produced by configure, useful for debugging
  2859. # configure, is in ./config.log if it exists.
  2860.  
  2861. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2862. for ac_option
  2863. do
  2864.   case "\$ac_option" in
  2865.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2866.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2867.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2868.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2869.     echo "$CONFIG_STATUS generated by autoconf version 2.7"
  2870.     exit 0 ;;
  2871.   -help | --help | --hel | --he | --h)
  2872.     echo "\$ac_cs_usage"; exit 0 ;;
  2873.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2874.   esac
  2875. done
  2876.  
  2877. ac_given_srcdir=$srcdir
  2878. ac_given_INSTALL="$INSTALL"
  2879.  
  2880. trap 'rm -fr `echo "Makefile filters/Makefile config.h filters/filters.h filters/filters2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2881. EOF
  2882. cat >> $CONFIG_STATUS <<EOF
  2883.  
  2884. # Protect against being on the right side of a sed subst in config.status.
  2885. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2886.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2887. $ac_vpsub
  2888. $extrasub
  2889. s%@CFLAGS@%$CFLAGS%g
  2890. s%@CPPFLAGS@%$CPPFLAGS%g
  2891. s%@CXXFLAGS@%$CXXFLAGS%g
  2892. s%@DEFS@%$DEFS%g
  2893. s%@LDFLAGS@%$LDFLAGS%g
  2894. s%@LIBS@%$LIBS%g
  2895. s%@exec_prefix@%$exec_prefix%g
  2896. s%@prefix@%$prefix%g
  2897. s%@program_transform_name@%$program_transform_name%g
  2898. s%@bindir@%$bindir%g
  2899. s%@sbindir@%$sbindir%g
  2900. s%@libexecdir@%$libexecdir%g
  2901. s%@datadir@%$datadir%g
  2902. s%@sysconfdir@%$sysconfdir%g
  2903. s%@sharedstatedir@%$sharedstatedir%g
  2904. s%@localstatedir@%$localstatedir%g
  2905. s%@libdir@%$libdir%g
  2906. s%@includedir@%$includedir%g
  2907. s%@oldincludedir@%$oldincludedir%g
  2908. s%@infodir@%$infodir%g
  2909. s%@mandir@%$mandir%g
  2910. s%@CC@%$CC%g
  2911. s%@CPP@%$CPP%g
  2912. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2913. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2914. s%@LN_S@%$LN_S%g
  2915. s%@GHOSTSCRIPT@%$GHOSTSCRIPT%g
  2916. s%@GROG@%$GROG%g
  2917. s%@GROFF@%$GROFF%g
  2918. s%@DITROFF@%$DITROFF%g
  2919. s%@GROPS@%$GROPS%g
  2920. s%@GRODVI@%$GRODVI%g
  2921. s%@GROTTY@%$GROTTY%g
  2922. s%@GROLJ4@%$GROLJ4%g
  2923. s%@GZIP@%$GZIP%g
  2924. s%@ZCAT@%$ZCAT%g
  2925. s%@UNCOMPRESS@%$UNCOMPRESS%g
  2926. s%@DVIPS@%$DVIPS%g
  2927. s%@PNMTOPS@%$PNMTOPS%g
  2928. s%@GIFTOPPM@%$GIFTOPPM%g
  2929. s%@DJPEG@%$DJPEG%g
  2930. s%@SGITOPNM@%$SGITOPNM%g
  2931. s%@TOPS@%$TOPS%g
  2932. s%@SGITOPS@%$SGITOPS%g
  2933. s%@TIFFTOPNM@%$TIFFTOPNM%g
  2934. s%@BMPTOPPM@%$BMPTOPPM%g
  2935. s%@RASTTOPNM@%$RASTTOPNM%g
  2936. s%@NENSCRIPT@%$NENSCRIPT%g
  2937. s%@A2X@%$A2X%g
  2938. s%@A2PS@%$A2PS%g
  2939. s%@FIG2DEV@%$FIG2DEV%g
  2940. s%@SENDMAIL@%$SENDMAIL%g
  2941.  
  2942. CEOF
  2943. EOF
  2944. cat >> $CONFIG_STATUS <<EOF
  2945.  
  2946. CONFIG_FILES=\${CONFIG_FILES-"Makefile filters/Makefile"}
  2947. EOF
  2948. cat >> $CONFIG_STATUS <<\EOF
  2949. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2950.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2951.   case "$ac_file" in
  2952.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2953.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2954.   *) ac_file_in="${ac_file}.in" ;;
  2955.   esac
  2956.  
  2957.   # Adjust relative srcdir, etc. for subdirectories.
  2958.  
  2959.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2960.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2961.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2962.     # The file is in a subdirectory.
  2963.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2964.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2965.     # A "../" for each directory in $ac_dir_suffix.
  2966.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2967.   else
  2968.     ac_dir_suffix= ac_dots=
  2969.   fi
  2970.  
  2971.   case "$ac_given_srcdir" in
  2972.   .)  srcdir=.
  2973.       if test -z "$ac_dots"; then top_srcdir=.
  2974.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2975.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2976.   *) # Relative path.
  2977.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2978.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2979.   esac
  2980.  
  2981.   case "$ac_given_INSTALL" in
  2982.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2983.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2984.   esac
  2985.   echo creating "$ac_file"
  2986.   rm -f "$ac_file"
  2987.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2988.   case "$ac_file" in
  2989.   *Makefile*) ac_comsub="1i\\
  2990. # $configure_input" ;;
  2991.   *) ac_comsub= ;;
  2992.   esac
  2993.   sed -e "$ac_comsub
  2994. s%@configure_input@%$configure_input%g
  2995. s%@srcdir@%$srcdir%g
  2996. s%@top_srcdir@%$top_srcdir%g
  2997. s%@INSTALL@%$INSTALL%g
  2998. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2999. fi; done
  3000. rm -f conftest.subs
  3001.  
  3002. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3003. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3004. #
  3005. # ac_d sets the value in "#define NAME VALUE" lines.
  3006. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3007. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3008. ac_dC='\3'
  3009. ac_dD='%g'
  3010. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3011. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3012. ac_uB='\([     ]\)%\1#\2define\3'
  3013. ac_uC=' '
  3014. ac_uD='\4%g'
  3015. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3016. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3017. ac_eB='$%\1#\2define\3'
  3018. ac_eC=' '
  3019. ac_eD='%g'
  3020.  
  3021. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h filters/filters.h filters/filters2.h"}
  3022. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3023.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3024.   case "$ac_file" in
  3025.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3026.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3027.   *) ac_file_in="${ac_file}.in" ;;
  3028.   esac
  3029.  
  3030.   echo creating $ac_file
  3031.  
  3032.   rm -f conftest.frag conftest.in conftest.out
  3033.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3034.  
  3035. EOF
  3036.  
  3037. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3038. # the proper values into config.h.in to produce config.h.  And first:
  3039. # Protect against being on the right side of a sed subst in config.status.
  3040. # Protect against being in an unquoted here document in config.status.
  3041. rm -f conftest.vals
  3042. cat > conftest.hdr <<\EOF
  3043. s/[\\&%]/\\&/g
  3044. s%[\\$`]%\\&%g
  3045. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3046. s%ac_d%ac_u%gp
  3047. s%ac_u%ac_e%gp
  3048. EOF
  3049. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3050. rm -f conftest.hdr
  3051.  
  3052. # This sed command replaces #undef with comments.  This is necessary, for
  3053. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3054. # on some systems where configure will not decide to define it.
  3055. cat >> conftest.vals <<\EOF
  3056. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3057. EOF
  3058.  
  3059. # Break up conftest.vals because some shells have a limit on
  3060. # the size of here documents, and old seds have small limits too.
  3061. # Maximum number of lines to put in a single here document.
  3062. ac_max_here_lines=12
  3063.  
  3064. rm -f conftest.tail
  3065. while :
  3066. do
  3067.   ac_lines=`grep -c . conftest.vals`
  3068.   # grep -c gives empty output for an empty file on some AIX systems.
  3069.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3070.   # Write a limited-size here document to conftest.frag.
  3071.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3072.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3073.   echo 'CEOF
  3074.   sed -f conftest.frag conftest.in > conftest.out
  3075.   rm -f conftest.in
  3076.   mv conftest.out conftest.in
  3077. ' >> $CONFIG_STATUS
  3078.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3079.   rm -f conftest.vals
  3080.   mv conftest.tail conftest.vals
  3081. done
  3082. rm -f conftest.vals
  3083.  
  3084. cat >> $CONFIG_STATUS <<\EOF
  3085.   rm -f conftest.frag conftest.h
  3086.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3087.   cat conftest.in >> conftest.h
  3088.   rm -f conftest.in
  3089.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3090.     echo "$ac_file is unchanged"
  3091.     rm -f conftest.h
  3092.   else
  3093.     rm -f $ac_file
  3094.     mv conftest.h $ac_file
  3095.   fi
  3096. fi; done
  3097.  
  3098.  
  3099.  
  3100. exit 0
  3101. EOF
  3102. chmod +x $CONFIG_STATUS
  3103. rm -fr confdefs* $ac_clean_files
  3104. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3105.  
  3106.